﻿using System.Collections.Generic;

namespace MQTTServer.Models
{
    /// <summary>
    /// 批量删除人员
    /// </summary>
    public class DeletePersons
    {
        /// <summary>
        ///  批量删除人员
        /// </summary>
        public string @operator { get; set; }

        /// <summary>
        /// 消息 id,区分每一条消
        /// </summary>
        public string messageId { get; set; }
        
        /// <summary>
        /// 数据包开始标识，检测数据包完整性
        /// </summary>
        public string DataBegin { get; set; }

        /// <summary>
        /// 数据包结束标识，检测数据包完整性
        /// </summary>
        public string DataEnd { get; set; }

        /// <summary>
        /// 删除人员数目,必须和对应人员信息 customId 总个数一致
        /// </summary>
        public int PersonNum { get; set; }

        /// <summary>
        ///  DeletePersonsInfo
        /// </summary>
        public DeletePersonsInfo info { get; set; }
    }

    public class DeletePersonsInfo
    {
        /// <summary>
        ///  平台生成的 id,唯一标识不同人员，建议使用身份证号，传入 customId设备已经存在视为修改，否则为增加
        /// </summary>
        public List<string> customId { get; set; }
    }
}